import request from '@/utils/request'
export function fetchList(params) { 
  return request({
    url:'/interview/list',
    method:'get',
    params:params
  })
}

export function createInterview(data) {
  return request({
    url:'/interview/add',
    method:'post',
    data:data
  })
}
export function getIterviewById(id) {
  return request({
    url:'/interview/getById/'+id,
    method:'get',
  })
}
//单删
export function deleteInterview(id) {
  return request({
    url:'/interview/delete/'+id,
    method:'get',
  })
}
//批量删除GET
export function deleteInterviewBatch(ids) {
  return request({
    url:'/interview/deleteBatch',
    method:'get',
    params:ids
  })
}
//批量删除POST
export function deleteInterviewBatchPost(data) {
  return request({
    url:'/interview/deletePost2',
    method:'post',
    data:data
  })
}
//批量删除POST实体
export function deleteInterviewBatchPost2(data) {
  return request({
    url:'/interview/deleteBatchPost2',
    method:'post',
    data:data
  })
}


export function updateInterview(data) {
  return request({
    url:'/interview/update',
    method:'post',
    data:data
  })
}